/**
* Represents a Simple Dot with or without a text label
* @author Default
* @version 0.1
*/
import com.thelab.ui.*;

dynamic class com.thelab.ui.Dot extends UIElement
{	
	public function Dot(scope:MovieClip,px:Number,py:Number,size:Number)
	{		
		super("UIDot",scope);		
		target._x = px || 0;
		target._y = py || 0;
		style.size = size || 5;
		draw();
	}	
	
	private function update_style()
	{
		//trace("UIDot> Setting Style: ");
		//trace(style);
		draw();
	}	
	function draw()
	{		
		
		target.clear();
		target.lineStyle(style.linethick,style.linecolor,style.linealpha);
		target.beginFill(style.backcolor,style.backalpha);
		square(0,0);
		target.endFill();
	}
	
}